<%--
  Created by bothin
  At 2019/12/20 16:26
  Description: 
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<!DOCTYPE html>
<html>
<head>
    <%@include file="../../component/head_link_css_js.jsp"%>

    <style>
        .layui-form-item .layui-input-inline{
            width: 380px;
        }
        .layui-select-title{
            margin-right: 10px;
        }
        .layui-form-select .layui-edge{
            right: 20px;
        }
        #createTime{
            width: 203.5%;
        }
        .list_item{
            margin-top: 7px;
            margin-bottom: 15px;
        }
    </style>
</head>
<body class="layui-layout-body">
<div class="layui-layout layui-layout-admin">
    <!-- 头部区域 -->
    <%@include file="../../component/nav_header.jsp"%>
    <!-- 侧边菜单 -->
    <jsp:include page="../../component/nav_side_menu.jsp">
        <jsp:param name="nav" value="3#${index}" />
    </jsp:include>

    <!-- 内容主体区域 -->
    <div class="layui-body" id="LAY_app_body" style="top: 50px;">
        <div class="layui-fluid">
            <div class="layui-card">
                <form class="layui-form"  action="${pageContext.request.contextPath}/stockman/manage/in/add" method="post"
                      style="padding: 30px;width: 500px;margin-left: 370px;">
                    <h3 style="text-align:center;margin-bottom: 50px;">新增进货单</h3>
                    <div class="layui-form-item">
                        <label class="layui-form-label">商品 *</label>
                        <div class="layui-input-block" id="product_block">
                            <select name="productId" lay-search id="sel_product" required>
                                <option value="">请选择商品</option>
                                <c:forEach items="${products}" var="item">
                                    <option value="${item.productId}">${item.productName}</option>
                                </c:forEach>
                            </select>
                        </div>
                    </div>
                    <div class="layui-form-item">
                        <label class="layui-form-label">进货数量 *</label>
                        <div class="layui-inline">
                            <input type="number" min="1" required name="productQuantity" placeholder="请填写进货数量" class="layui-input">
                        </div>
                    </div>
                    <div class="layui-form-item">
                        <div class="layui-input-block" style="margin-left: 143px;margin-bottom: 60px;">
                            <button class="layui-btn" type="submit">立即提交</button>
                            <button class="layui-btn layui-btn-primary" type="reset">重置</button>
                        </div>
                    </div>
                </form>
            </div>
        </div>
    </div>
</div>


</body>
</html>
<script>
    layui.config({
        base: '${pageContext.request.contextPath}/resources/layuiadmin/' //静态资源所在路径
    }).extend({
        index: 'lib/index' //主入口模块
    }).use(['index', 'laydate','sample','useradmin','layer','form'], function(){

        var $ = layui.$
            ,form = layui.form
            ,laydate = layui.laydate,layer=layui.layer;


    });

</script>

